
<?php
  //=========================<script réalisé par :BOUFTIH FADWA >===================
include_once('connectBD.php');
include_once('beans/reclamationBean.php');
include_once('configuration.php');

class reclamationDao{

  
  public function insertReclamation($reclamation){  //$reclamation est un objet de type reclamation
  $designation=$reclamation->getDesignation();
  $daterec=$reclamation->getDateReclamation();           //**************
  $descrip=$reclamation->getDescription();
  $nomade=$reclamation->getIdNomade();
  echo "<br>INSERT INTO reclamation(designationTache,description,dateReclamation,idNomade) values(\"$designation\",\"$descrip\",\"$daterec\",$nomade)<br>";                                                                     
  $req=connexion()->exec("INSERT INTO reclamation(designationTache,description,dateReclamation,idNomade) values(\"$designation\",\"$descrip\",\"$daterec\",$nomade)");
        

             }   


  }

?>
